﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Articles_Ajax
{
    /// <summary>
    /// 评论实体类
    /// </summary>
    public class Comment
    {
        #region 属性
       

        ///// <summary>
        ///// 评论序号，
        ///// </summary>
        //public int CID { get; set; }
        ///// <summary>
        ///// 评论文章的编号
        ///// </summary>
        //public int AID { get; set; }
        /// <summary>
        /// 评论者昵称
        /// </summary>
        public String UserNick { get; set; }
        /// <summary>
        /// 评论内容
        /// </summary>
        public String Message { get; set; }
        #endregion

        #region 构造方法
        /// <summary>
        /// 无参构造方法
        /// </summary>
        public Comment() { }
        /// <summary>
        /// 带参构造方法
        /// </summary>
        /// <param name="nick"></param>
        /// <param name="message"></param>
        public Comment(String nick, String message)
        {
            this.UserNick = nick;
            this.Message = message;
        }
        ///// <summary>
        ///// 带参构造方法
        ///// </summary>
        ///// <param name="cid"></param>
        ///// <param name="aid"></param>
        ///// <param name="nick"></param>
        ///// <param name="message"></param>
        //public Comment(Int32 cid, Int32 aid, String nick, String message)
        //{
        //    this.CID = cid;
        //    this.AID = aid;
        //    this.UserNick = nick;
        //    this.Message = message;
        //}
        #endregion

    }
}